<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="">
<!--<![endif]-->

<head>
  <!-- METAS -->
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <link rel="icon" href="/public/images/favicon.ico" type="image/x-icon">
  <link rel="stylesheet" href="/public/css/min.css">
  <title>测试</title>
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <link rel="stylesheet" href="/public/css/style.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/public/css/pagenavi-css.css" type="text/css" media="all" />
  <script type="text/javascript" src="/public/js/jquery-1.11.3.min.js"></script>
</head>

<body data-theme-url="" data-device="desktop"
  class="home page-template page-template-page-templates page-template-page-home page-template-page-templatespage-home-php page page-id-5 language-en">
  <div class="loadingBg">
    <div class="loadinglg">
      <div class="ldlogo"></div>
      <div class="ldbg"></div>
    </div>
  </div>

  <div class="scroller-wrapper" scrollbar>
    <div class="component-transition-line">
      <div class="transition-line__wrapper">
        <div class="transition-line__line">
          <svg class="transition-line__svg" x="0px" y="0px" viewBox="0 0 1920 3105">
            <path fill="none" stroke-width="4"
              d="M861.1,1200c120.8-257.7,320.9-290.4,379.8-527.1c30-120.7-0.7-237.2-5.8-255.8 c-35.3-128.4-114.8-193.9-158-232C1036.8,149.8,960.6,82.7,881.7-4.5" />
            <path fill="none" stroke-width="4"
              d="M695,3102c5.5-82.9,49.5-158,86.1-221.6c90.3-157,135.5-235.5,148-265.1c18.3-43.5,91.8-217.8,72-422.5 c-7.1-72.8-39.4-160.8-104-336.9c-70.6-192.2-84.4-195.4-100-265.1c-33.6-149.6-3.1-247.7,64-390.8" />
          </svg>
        </div>
      </div>
    </div>
    <!--#include file="/views/component/header.html"-->
    <main id="barba-wrapper">
      <section class="barba-container" data-namespace="home">
        <div class="misc-sticky js-printed-checker">
          <div class="misc-sticky__wrapper wrapper--left">
            <div class="component-nav-vertical">
              <div class="nav-vertical__list"> </div>
              <div class="nav-vertical__arrow">
                <button class="arrow-line arrow--bottom"> <span></span> <span></span> </button>
                <button class="arrow-line arrow--top"> <span></span> <span></span> </button>
              </div>
            </div>
          </div>
          <div class="component-tabs">
            <div class="tabs__wrapper">
              <button class="btn btn--primary btn--large btn--light-2" data-tabs-items="qyxw">
                <div>
                  <div class="btn__text" data-text="企业新闻">
                    <span>企业新闻</span>
                  </div>
                </div>
              </button>
              <button class="btn btn--primary btn--large btn--light-2" data-tabs-items="hyzx">
                <div>
                  <div class="btn__text" data-text="行业资讯">
                    <span>行业资讯</span>
                  </div>
                </div>
              </button>
            </div>
          </div>
        </div>

        <div class="banner">
          <div class="img"><img src="http://yongxin.yxopt.com/upload/2018030213544095.jpg" alt=""></div>
        </div>



        <div class="news || js-uicolor-checker">
          <div class="container">
            <div class="js" data-tabs-target="qyxw">
              <div class="tit">
                <div class="cn">企业新闻</div>
                <div class="en">NEWS</div>
              </div>
              <div class="txt">
                <p>&nbsp;</p>
              </div>
            </div>
            <div class="list">
              <div id="qyxw">
                <div class="component-preview-new || js-scroll js-printed-checker || preview-new-type--2">
                  <div class="position-center">
                    <div class="center-in || row row--md-2">
                      <a href="/views/new-detail.html?nid=229" class="preview-new__img || row__item">
                        <div class="img__wrapper">
                          <span
                            style="background-image:url('http://yongxin.yxopt.com/upload/2021102514290319.jpg')"></span>
                        </div>
                      </a>
                      <div class="preview-new__info || row__item">
                        <h2 class="preview-new__title">永新资讯 | 2021年仪器仪表产业发展峰会在宁波召开 永新光学协办</h2>
                        <div class="preview-new__text">
                          邀八方来客，谋产业发展。10月19日-
                          21日，由中国仪器仪表行业协会主办，钉耙精密仪器（深圳）有限公司和宁波水表(集团)股份有限公司联合协办的2021年仪器仪表产业发展峰会暨中国仪器仪表行业协会八届五次理事会议在浙江宁波顺利召开...
                        </div>
                        <a href="/views/new-detail.html?nid=229" class="btn btn--primary btn--large btn--light-blue">
                          <div>
                            <div class="btn__text" data-text="查看详情">
                              <span>查看详情</span>
                            </div>
                            <div class="pub-y-line">
                              <img src="/public/images/r-line-w.png" alt="">
                            </div>
                          </div>
                        </a>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="component-preview-new || js-scroll js-printed-checker || preview-new-type--2">
                  <div class="position-center">
                    <div class="center-in || row row--md-2">
                      <a href="/views/new-detail.html?nid=225" class="preview-new__img || row__item">
                        <div class="img__wrapper">
                          <span
                            style="background-image:url('http://yongxin.yxopt.com/upload/2021102011292423.jpg')"></span>
                        </div>
                      </a>
                      <div class="preview-new__info || row__item">
                        <h2 class="preview-new__title">永新光学将参展 2021华南先进激光及加工应用技术展览会</h2>
                        <div class="preview-new__text">
                          公司将于2021年10月28-30日参加 2021华南先进激光及加工应用技术展览会... </div>
                        <a href="/views/new-detail.html?nid=225" class="btn btn--primary btn--large btn--light-blue">
                          <div>
                            <div class="btn__text" data-text="查看详情">
                              <span>查看详情</span>
                            </div>
                            <div class="pub-y-line">
                              <img src="/public/images/r-line-w.png" alt="">
                            </div>
                          </div>
                        </a>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="component-preview-new || js-scroll js-printed-checker || preview-new-type--2">
                  <div class="position-center">
                    <div class="center-in || row row--md-2">
                      <a href="/views/new-detail.html?nid=224" class="preview-new__img || row__item">
                        <div class="img__wrapper">
                          <span
                            style="background-image:url('http://yongxin.yxopt.com/upload/2021101811174663.jpg')"></span>
                        </div>
                      </a>
                      <div class="preview-new__info || row__item">
                        <h2 class="preview-new__title">浙江省委常委、常务副省长陈金彪一行调研永新光学</h2>
                        <div class="preview-new__text">
                          10月14日下午，浙江省委常委、常务副省长陈金彪一行莅临永新光学考察调研... </div>
                        <a href="/views/new-detail.html?nid=224" class="btn btn--primary btn--large btn--light-blue">
                          <div>
                            <div class="btn__text" data-text="查看详情">
                              <span>查看详情</span>
                            </div>
                            <div class="pub-y-line">
                              <img src="/public/images/r-line-w.png" alt="">
                            </div>
                          </div>
                        </a>
                      </div>
                    </div>
                  </div>
                </div>
              </div>

              <input type="hidden" id="page1" value="2">
              <div class="more js-printed-checker">
                <a href="javascript:;" class="more btn btn--primary btn--large btn--light" id="more1" data-status="1">
                  <div>
                    <div class="btn__text" data-text="加载更多"> <span>加载更多</span> </div>
                    <div class="pub-y-line">
                      <img src="/public/images/r-line-y.png" alt="">
                    </div>
                  </div>
                </a>
              </div>
            </div>
            <div class="js" data-tabs-target="hyzx">
              <div class="tit">
                <div class="cn">行业资讯</div>
                <div class="en">Industry information</div>
              </div>
              <div class="txt">
                <p>&nbsp;</p>
              </div>
            </div>
            <div class="list">
              <div id="hyzx">
              </div>

              <input type="hidden" id="page2" value="2">
              <div class="more js-printed-checker">
                <a href="javascript:;" class="more btn btn--primary btn--large btn--light" id="more2" data-status="1">
                  <div>
                    <div class="btn__text" data-text="加载更多"> <span>加载更多</span> </div>
                    <div class="pub-y-line">
                      <img src="/public/images/r-line-y.png" alt="">
                    </div>
                  </div>
                </a>
              </div>
            </div>
          </div>
        </div>
        <script>
          $(function () {
            var display1 = $('#more1').css('display');
            var display2 = $('#more2').css('display');

            $('#more1').click(function () {
              jz();
            });

            $('#more2').click(function () {
              jz2();
            });

            function jz() {
              var page = parseInt($("#page1").val());
              var status = $("#more1").attr("data-status");
              if (status == 1) {
                status = $("#more1").attr("data-status", "0");
                $.ajax({
                  type: "post",
                  url: "qyxw.php",
                  data: "&page=" + page,
                  dataType: "json",
                  success: function (data) {

                    /*数据不够10条隐藏按钮*/
                    if (data.length < 3) {
                      $("#more1").hide();
                    } else {
                      $("#page1").val(page + 1); //记录页码
                    }
                    insertDiv(data);
                  }
                });
              }

            };

            function jz2() {
              var page = parseInt($("#page2").val());
              var status = $("#more2").attr("data-status");
              if (status == 1) {
                status = $("#more2").attr("data-status", "0");
                $.ajax({
                  type: "post",
                  url: "hyzx.php",
                  data: "&page=" + page,
                  dataType: "json",
                  success: function (data) {

                    /*数据不够10条隐藏按钮*/
                    if (data.length < 3) {
                      $("#more2").hide();
                    } else {
                      $("#page2").val(page + 1); //记录页码
                    }
                    insertDiv2(data);
                  }
                });
              }

            };
          });

          function insertDiv(data) {
            var information = $("#qyxw");
            var html = '';
            for (var i = 0; i < data.length; i++) {
              html +=
                '<div class="component-preview-new || js-scroll js-printed-checker || preview-new-type--2 is-show printed"><div class="position-center"><div class="center-in || row row--md-2"><a href="/views/new-detail.html?nid=' +
                data[i].ID +
                '" class="preview-new__img || row__item"> <div class="img__wrapper"> <span style="background-image:url(\'http://yongxin.yxopt.com/upload/' +
                data[i].SMALLPIC +
                '\')"></span></div></a><div class="preview-new__info || row__item"> <h2 class="preview-new__title">' +
                data[i].TITLE + '</h2> <div class="preview-new__text">' + data[i].JJ +
                '</div> <a href="/views/new-detail.html?nid=' + data[i].ID +
                '" class="btn btn--primary btn--large btn--light-blue"> <div> <div class="btn__text" data-text="查看详情"> <span>查看详情</span> </div> <div class="btn__line arrow-line"> <span></span> <span></span> </div> </div> </a> </div> </div> </div> </div>';
            }
            information.append(html);
            $("#more1").attr("data-status", "1");
          }

          function insertDiv2(data) {
            var information = $("#hyzx");
            var html = '';
            for (var i = 0; i < data.length; i++) {
              html +=
                '<div class="component-preview-new || js-scroll js-printed-checker || preview-new-type--2 is-show printed"><div class="position-center"><div class="center-in || row row--md-2"><a href="/views/new-detail.html?nid=' +
                data[i].ID +
                '" class="preview-new__img || row__item"> <div class="img__wrapper"> <span style="background-image:url(\'http://yongxin.yxopt.com/upload/' +
                data[i].SMALLPIC +
                '\')"></span></div></a><div class="preview-new__info || row__item"> <h2 class="preview-new__title">' +
                data[i].TITLE + '</h2> <div class="preview-new__text">' + data[i].JJ +
                '</div> <a href="/views/new-detail.html?nid=' + data[i].ID +
                '" class="btn btn--primary btn--large btn--light-blue"> <div> <div class="btn__text" data-text="查看详情"> <span>查看详情</span> </div> <div class="btn__line arrow-line"> <span></span> <span></span> </div> </div> </a> </div> </div> </div> </div>';
            }
            information.append(html);
            $("#more2").attr("data-status", "1");
          }
        </script>
        <!--#include file="/views/component/footer.html"-->
        <style>
          #cnzz_stat_icon_1280183050 {
            margin-left: 20px;
          }
        </style>
      </section>
    </main>
  </div>
</body>

</html>